﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
     <title>登录</title>
      <link rel="stylesheet" th:href="@{/css/pintuer.css}">
      <link rel="stylesheet" th:href="@{/css/admin.css}">
    <style type="text/css">
       *{
        font-size: 12px;
       }
    </style>

  </head>
  
  <body>

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 操作信息管理</strong></div>
    <div class="padding border-bottom">
      <!--<ul class="search">
        <li>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>
        </li>
      </ul>-->
    </div>
    <table class="table table-hover text-center" id="fsort-table">
      <tr>
        
        <th>编号</th>       
        <th>电影类别</th>
        <th>电影备注</th>
        <th align="center">操作</th>       

    </table>
  </div>
</body>
<script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
<script>
    $(function(){
        $.get("../gson/fsortGson",function(data){
            var appendText = '';
            $(data).each(function(i,n){
                appendText += "<tr>" +
                    "<td>"+n.sid+"</td>" +
                    "<td>"+n.sname+"</td>" +
                    "<td>"+n.sremark+"</td>" +
                    "<td>" +
                    "      <div class=\"button-group\">\n" +
                    "<a class=\"button border-red\" href='fsortControllerUpdate?sid="+n.sid+"'>\n" +
                    "<span class=\"icon-trash-o\">\n" +
                    "</span> 修改</a> \n" +
                    "</div>\n" +
                    "</td>" +
                    "</tr>";
            });
            appendText += "<tr>\n" +
                "       \t\t<td colspan=\"4\" align=\"center\">\n" +
                "\t\t\t\t<a href='fsortControllerAdd'><button type=\"button\"  class=\"button border-green\" id=\"checkall\"><span class=\"icon-check\"></span> 增加</button></a>\n" +
                "\t\t\t</td>\n" +
                "       </tr>";
            $("#fsort-table tbody").append(appendText);
        });
    });
</script>
</html>
